import request from '@/utils/request'

/*获取tspec2015列表*/ 
export function list(query) {
    return request({
      url: '/api/incigroup/list',
      method: 'get',
      params: query
    })
  }
// 新增tspec2015
export function add(data) {
    return request({
      url: '/api/incigroup',
      method: 'post',
      data: data
    })
  }

// 修改tspec2015
export function edit(data) {
    return request({
      url: '/api/incigroup',
      method: 'put',
      data: data
    })
  }

// 删除tspec2015
export function del(data) {
    return request({
      url: '/api/incigroup',
      method: 'delete',
      data: data
    })
  }

/*获取tspec2015Inci列表*/ 
export function listInci(query) {
    return request({
      url: '/api/incigroup_inci/list',
      method: 'get',
      params: query
    })
  }

// 新增tspec2015Inci
export function addInci(serial,annex,data) {
    return request({
      url: '/api/incigroup/'+serial+'/'+annex+'/inci',
      method: 'post',
      data: data
    })
  }

// 删除tspec2015Inci
export function delInci(data) {
    return request({
      url: '/api/incigroup_inci',
      method: 'delete',
      data: data
    })
  }

  // 导入inciList
  export function importInciList(data) {
    return request({
      url: '/api/incigroup/importInciList',
      method: 'post',
      data: data
    })
  }